import { createApp } from 'vue';
import App from './App.vue';
import './css/index.css';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import locale from "element-plus/es/locale/lang/zh-cn"

import { getProjectManager } from './scripts/getProjectManager';
import EarthSDKUI from 'earthsdk-ui';
import 'earthsdk-ui/lib/style.css';
import './scripts/iconfont/iconfont.js';
import { CzmESRtsPolygon } from "@/scripts/esobjs/ESRtsPolygon/CzmESRtsPolygon";
import { UeESRtsPolygon } from "@/scripts/esobjs/ESRtsPolygon/UeESRtsPolygon";

import { CzmESRtsTileset } from "@/scripts/esobjs/ESRtsTileset/CzmESRtsTileset";
import { UeESRtsTileset } from "@/scripts/esobjs/ESRtsTileset/UeESRtsTileset";

import { CzmESFeTreeAdding } from "@/scripts/esobjs/ESFeTreeAdding/CzmESFeTreeAdding";
import { UeESFeTreeAdding } from "@/scripts/esobjs/ESFeTreeAdding/UeESFeTreeAdding";

import { CzmESFeTreeEditing } from "@/scripts/esobjs/ESFeTreeEditing/CzmESFeTreeEditing";
import { UeESFeTreeEditing } from "@/scripts/esobjs/ESFeTreeEditing/UeESFeTreeEditing";

import { CzmESRtsFeatureAdding } from "@/scripts/esobjs/ESRtsFeatureAdding/CzmESRtsFeatureAdding";
import { UeESRtsFeatureAdding } from "@/scripts/esobjs/ESRtsFeatureAdding/UeESRtsFeatureAdding";

import { CzmESRtsEexturedPolygon } from "@/scripts/esobjs/ESRtsEexturedPolygon/CzmESRtsEexturedPolygon";

import { CzmESRtsFeatureEditing } from "@/scripts/esobjs/ESRtsFeatureEditing/CzmESRtsFeatureEditing";
import { UeESRtsFeatureEditing } from "@/scripts/esobjs/ESRtsFeatureEditing/UeESRtsFeatureEditing";

import { CzmESGeoExtrudedPolygonUFMS } from '@/scripts/esobjs/ESGeoExtrudedPolygonUFMS/CzmESGeoExtrudedPolygonUFMS';
import { CzmESGeoExtrudedPolygonUFMSFromCircle } from '@/scripts/esobjs/ESGeoExtrudedPolygonUFMSFromCircle/CzmESGeoExtrudedPolygonUFMSFromCircle';
import { CzmESGeoExtrudedPolygonUFMSFromLineString } from '@/scripts/esobjs/ESGeoExtrudedPolygonUFMSFromLineString/CzmESGeoExtrudedPolygonUFMSFromLineString';
import { UeESForest } from '@/scripts/esobjs/ESForest/UeESForest';
import { CzmESForest } from '@/scripts/esobjs/ESForest/CzmESForest';

import { CzmESMsTileset } from "@/scripts/esobjs/ESMsTileset/CzmESMsTileset";

console.log(CzmESFeTreeAdding, UeESFeTreeAdding);
console.log(CzmESFeTreeEditing, UeESFeTreeEditing);

console.log(CzmESGeoExtrudedPolygonUFMS, CzmESGeoExtrudedPolygonUFMSFromCircle, CzmESGeoExtrudedPolygonUFMSFromLineString);
console.log(UeESForest, CzmESForest);
console.log("CzmESRtsTileset", CzmESRtsTileset);
console.log("UeESRtsTileset", UeESRtsTileset);
console.log("CzmESRtsPolygon", CzmESRtsPolygon);
console.log("UeESRtsPolygon", UeESRtsPolygon);
console.log("CzmESRtsEexturedPolygon", CzmESRtsEexturedPolygon);
console.log("CzmESRtsFeatureAdding", CzmESRtsFeatureAdding);
console.log("UeESRtsFeatureAdding", UeESRtsFeatureAdding);
console.log("CzmESRtsFeatureEditing", CzmESRtsFeatureEditing);
console.log("UeESRtsFeatureEditing", UeESRtsFeatureEditing);
console.log("CzmESMsTileset", CzmESMsTileset);

//@ts-ignore
window.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ = true;

const objm = getProjectManager();
// @ts-ignore
window.g_objm = objm;

const app = createApp(App);
app.use(EarthSDKUI);
app.use(ElementPlus, { locale })
app.mount('#app');
